<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="API docs for the setFacebook method from the SSDKMap class, for the Dart programming language.">
  <title>setFacebook method - SSDKMap class - sharesdk_map library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="../..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">

</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">sharesdk</a></li>
    <li><a href="sharesdk_map/sharesdk_map-library.html">sharesdk_map</a></li>
    <li><a href="sharesdk_map/SSDKMap-class.html">SSDKMap</a></li>
    <li class="self-crumb">setFacebook method</li>
  </ol>
  <div class="self-name">setFacebook</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <h5>SSDKMap class</h5>
    <ol>
      <li class="section-title"><a href="sharesdk_map/SSDKMap-class.html#constructors">Constructors</a></li>
      <li><a href="sharesdk_map/SSDKMap/SSDKMap.html">SSDKMap</a></li>
    
      <li class="section-title">
        <a href="sharesdk_map/SSDKMap-class.html#instance-properties">Properties</a>
      </li>
      <li><a href="sharesdk_map/SSDKMap/map.html">map</a></li>
      <li class="inherited"><a href="sharesdk_map/SSDKMap/hashCode.html">hashCode</a></li>
      <li class="inherited"><a href="sharesdk_map/SSDKMap/runtimeType.html">runtimeType</a></li>
    
      <li class="section-title"><a href="sharesdk_map/SSDKMap-class.html#instance-methods">Methods</a></li>
      <li><a href="sharesdk_map/SSDKMap/setFacebook.html">setFacebook</a></li>
      <li><a href="sharesdk_map/SSDKMap/setGeneral.html">setGeneral</a></li>
      <li><a href="sharesdk_map/SSDKMap/setQQ.html">setQQ</a></li>
      <li><a href="sharesdk_map/SSDKMap/setSina.html">setSina</a></li>
      <li><a href="sharesdk_map/SSDKMap/setTwitter.html">setTwitter</a></li>
      <li><a href="sharesdk_map/SSDKMap/setWechat.html">setWechat</a></li>
      <li><a href="sharesdk_map/SSDKMap/setWeChatMiniProgram.html">setWeChatMiniProgram</a></li>
      <li class="inherited"><a href="sharesdk_map/SSDKMap/noSuchMethod.html">noSuchMethod</a></li>
      <li class="inherited"><a href="sharesdk_map/SSDKMap/toString.html">toString</a></li>
    
      <li class="section-title inherited"><a href="sharesdk_map/SSDKMap-class.html#operators">Operators</a></li>
      <li class="inherited"><a href="sharesdk_map/SSDKMap/operator_equals.html">operator ==</a></li>
    
    
    
    </ol>
  </div><!--/.sidebar-offcanvas-->

  <div class="col-xs-12 col-sm-9 col-md-8 main-content">
    <h1>setFacebook method</h1>

    <section class="multi-line-signature">
      <span class="returntype">void</span>
      <span class="name ">setFacebook</span>
(<wbr><span class="parameter" id="setFacebook-param-text"><span class="type-annotation">String</span> <span class="parameter-name">text</span>, </span> <span class="parameter" id="setFacebook-param-images"><span class="type-annotation">dynamic</span> <span class="parameter-name">images</span>, </span> <span class="parameter" id="setFacebook-param-url"><span class="type-annotation">String</span> <span class="parameter-name">url</span>, </span> <span class="parameter" id="setFacebook-param-urlTitle"><span class="type-annotation">String</span> <span class="parameter-name">urlTitle</span>, </span> <span class="parameter" id="setFacebook-param-urlName"><span class="type-annotation">String</span> <span class="parameter-name">urlName</span>, </span> <span class="parameter" id="setFacebook-param-attachementUrl"><span class="type-annotation">String</span> <span class="parameter-name">attachementUrl</span>, </span> <span class="parameter" id="setFacebook-param-hasTag"><span class="type-annotation">String</span> <span class="parameter-name">hasTag</span>, </span> <span class="parameter" id="setFacebook-param-quote"><span class="type-annotation">String</span> <span class="parameter-name">quote</span>, </span> <span class="parameter" id="setFacebook-param-type"><span class="type-annotation"><a href="sharesdk_defines/SSDKContentType-class.html">SSDKContentType</a></span> <span class="parameter-name">type</span></span>)
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span> </h2>
      <pre class="language-dart"><code class="language-dart">void setFacebook(
    String text,
    images,
    String url,
    String urlTitle,
    String urlName,
    String attachementUrl,
    String hasTag,
    String quote,
    SSDKContentType type) {
  Map params = {};
  params[kType] = type.value;
  params[kText] = text;
  params[kImages] = images;

  if (url.contains(&quot;assets-library&quot;)) {
    params[kVideoAssetURL] = url;
  } else {
    params[kUrl] = url;
  }

  params[kTitle] = urlTitle;
  params[kURLName] = urlName;
  params[kAttachments] = attachementUrl;
  params[kFacebookHashtag] = hasTag;
  params[kFacebookQuote] = quote;

  int id = ShareSDKPlatforms.facebook.id;
  map[&quot;@platform($id)&quot;] = params;
}</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    sharesdk 0.0.1
  </span>

</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>


</body>

</html>
